<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 3. 外部引入 js  -->
    <script src="demo.js"></script>
</head>

<body>
    <!-- 2. 行内书写 js -->
    <input type="button" value="清理内存" onclick="alert('清理成功')">
    
    <!-- 1. 书写 js 的位置 -->
    <script>
        alert('加速电脑');
        alert('加速成功');
    </script>
</body>

</html>
